package com.zts.modules.sys.entity;


import com.zts.base.entity.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Created by lily on 2017/6/13.
 */
public class Role extends DataEntity {
    @NotNull(message = "角色名称不能为空")
    @Length(min = 1, max = 255, message = "角色名称长度不能超出255个字符")
    private String roleName;
    //角色类型
    private String type;
    //状态 0：不可用，1：可用
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
